<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			*{
				margin:0;
				padding:0;
			}
			body{
				height:2000px;
			}
			#box{
				height:100px;
				width:100px;
				background-color: #67B168;
				position: fixed;
				top:20px;
				left:20px;
			}
		</style>
	</head>
	<body>
		<div id="box"></div>
		<script>
			box.onclick=function(e){
				//console.log(e.offsetX,e.offsetY);
				//console.log(e.clientX,e.clientY);
				//console.log(e.screenX,e.screenY);
				console.log(e.pageX,e.pageY);
			}
		</script>
	</body>
</html>
